body {
  min-width: 800px;
  margin: 0;
  padding: 0;
  font-family: PingFang SC,
    system-ui,
    -apple-system,
    Segoe UI,
    Rototo,
    Helvetica,
    Arial,
    sans-serif;
  background-color: #fff;
  font-size: 14px;
}

.container {
  margin-top: 10px;
  padding: 15px;
}

h1 {
  text-align: center;
  color: #333;
  margin-top: 0;
  font-size: 20px;
}

.quadrants-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  height: calc(100vh - 40px);
  position: relative;
}

.quadrant {
  border-radius: 5px;
  padding: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 0px dashed #c0a9a9;
}

.quadrant h2 {
  margin-top: 0;
  text-align: left;
  font-size: 14px;
  /* display: flex; */
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  margin-bottom: 8px;
  cursor: pointer;
}

.quadrant h2 label {
  /* background-color: rgba(0, 0, 0, 0.1); */
  color: #333;
  padding: 2px 2px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: bold;
}

/* 象限任务占比显示样式 */
.quadrant-percentage {
  position: absolute;
  background-color: rgb(0 0 0 / 35%);
  color: white;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: bold;
  z-index: 5;
}

/* 第一象限：不重要紧急（左上） - 橙色 */
#quadrant-1 {
  background-color: #FCECBB;
  grid-column: 1;
  grid-row: 1;
  position: relative;
}

#percentage-1 {
  bottom: 5px;
  right: 5px;
}

/* 第二象限：重要紧急（右上） - 红色 */
#quadrant-2 {
  background-color: #F1BDD0;
  grid-column: 2;
  grid-row: 1;
  position: relative;
}

#percentage-2 {
  bottom: 5px;
  left: 5px;
}

/* 第三象限：不重要不紧急（左下） - 绿色 */
#quadrant-3 {
  background-color: #BFE9EE;
  grid-column: 1;
  grid-row: 2;
  position: relative;
}

#percentage-3 {
  bottom: 5px;
  right: 5px;
}

/* 第四象限：重要不紧急（右下） - 蓝色 */
#quadrant-4 {
  background-color: #CCE4CA;
  grid-column: 2;
  grid-row: 2;
  position: relative;
}

#percentage-4 {
  bottom: 5px;
  left: 5px;
}

.tasks-container {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.task-item {
  /* background-color: white; */
  border-radius: 4px;
  padding: 4px 6px;
  margin-bottom: 5px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  cursor: move;
  transition: transform 0.1s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.task-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 3px rgba(0,0,0,0.1);
}

.task-item.completed {
  opacity: 0.7;
  background-color: #f0f0f0;
  text-decoration: line-through;
}

.task-content {
  flex-grow: 1;
}

.task-name {
  font-weight: 300;
}

.task-deadline {
  font-size: 11px;
  color: #666;
  display: inline-block;
  margin-right: 10px;
}

.task-time-distance {
  font-size: 10px;
  display: inline-block;
}

.task-time-distance.active {
  color: #4CAF50; /* 绿色 */
  font-weight: bold;
}

.task-time-distance.expired {
  color: #ff6b6b; /* 红色 */
  font-weight: bold;
}

/* 已完成任务列表中的时间距离样式 */
.completed-task-item .task-time-distance {
  display: inline-block;
  margin-left: 10px;
  margin-top: 0;
}

.completed-task-item .task-time-distance.active {
  color: #4CAF50; /* 绿色 */
  font-weight: bold;
}

.completed-task-item .task-time-distance.expired {
  color: #ff6b6b; /* 红色 */
  font-weight: bold;
}

.task-actions {
  display: flex;
  align-items: center;
  margin-left: 8px;
}

.add-task-btn {
    width: 14px;
    height: 20px;
    margin-top: auto;
    background-color: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    padding-right: 15px;
    float: right;
    color: #fff;
}

.add-task-btn:hover {
  background-color: rgba(0,0,0,0.2);
}

/* 模态框样式 */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 8px;
  width: 80%;
  max-width: 400px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close:focus {
  color: black;
}

#task-form div {
  margin-bottom: 15px;
}

#task-form label {
  display: block;
  margin-bottom: 5px;
}

#task-form input,
#task-form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  font-size: 14px;
}

#task-form textarea {
  min-height: 150px;
  resize: vertical;
}

#task-form button {
  width: 100%;
  padding: 10px;
  background-color: #2ac931;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
}

#task-form button:hover {
  background-color: #13ae22;
}

.delete-btn {
  float: right;
  background: none;
  color: #ff4757;
  border: none;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 6px;
  line-height: 1;
}

.delete-btn:hover {
  color: #ff3742;
}

.edit-btn {
  float: right;
  background: none;
  color: #3742fa;
  border: none;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 14px;
  margin-right: 3px;
  line-height: 1;
}

.edit-btn:hover {
  color: #2d34fc;
}

.complete-btn {
  float: right;
  background: none;
  color: #2ed573;
  border: none;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 14px;
  margin-right: 3px;
  line-height: 1;
}

.complete-btn:hover {
  color: #26d467;
}

.restore-btn {
  float: right;
  background: none;
  color: #ffa502;
  border: none;
  padding: 2px 6px;
  cursor: pointer;
  font-size: 14px;
  margin-right: 3px;
  line-height: 1;
}

.restore-btn:hover {
  color: #ff9f00;
}

/* 轴线样式 */
.axis {
  position: absolute;
  background-color: #ddd;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.horizontal-axis {
  width: calc(100% - 5px);
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.horizontal-axis::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid #ddd;
}

.vertical-axis {
  width: 2px;
  height: calc(100% - 5px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.vertical-axis::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid #ddd;
}

.axis-label {
  background-color: #333;
  color: white;
  padding: 2px 8px;
  border-radius: 0px;
  font-size: 10px;
  font-weight: bold;
  width: 20px;
}

.horizontal-axis .axis-label {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 100%;
  transform: translateX(-50%);
}

.vertical-axis .axis-label {
  position: absolute;
  /* left: calc(100% + 5px); */
  top: -3%;
  transform: translateY(-50%);
}

/* 已完成任务列表样式 */
.task-success-list {
  padding-top: 15px;
  border-top: 1px solid #ddd;
}

.task-success-list h2 {
  margin-top: 0;
  font-size: 16px;
  color: #333;
}

.task-success-title h2 {
  font-size: 16px;
  color: #333;
}

.completed-task-item {
  background-color: #dedede40;
  border-radius: 4px;
  padding: 6px 8px;
  margin-bottom: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  display: -webkit-inline-box;
  justify-content: space-between;
  align-items: center;
  width: fit-content;
  margin-right: 6px;
}

.completed-task-item .task-content {
  flex-grow: 1;
}

.completed-task-item .task-name {
  font-weight: normal;
  font-size: 13px;
  max-width: 220px;
  overflow-y: auto;
  height: 36px;
}

.completed-task-item .task-deadline {
  font-size: 11px;
  color: #666;
  display: inline-block;
  margin-right: 10px;
}

.completed-task-item .task-time-distance {
  font-size: 10px;
  color: #ff6b6b;
  font-weight: bold;
  display: inline-block;
}

.completed-task-item .task-actions {
  display: flex;
  align-items: center;
  margin-left: 8px;
}

/* 版本和作者信息样式 */
.information {
  text-align: right;
  margin-top: 10px;
  padding: 10px 0;
  font-size: 12px;
  color: #666;
}

.information p {
  margin: 2px 0;
}

.task-success-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 导入/导出按钮样式 */
.task-success-btns {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.import-btn, .export-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* background-color: #4CAF50; */
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.1s;
  margin-left: 5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.import-btn:hover, .export-btn:hover {
  /* background-color: #45a049; */
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.import-btn:active, .export-btn:active {
  transform: translateY(0);
}

.import-btn svg, .export-btn svg {
  margin-right: 0px;
  width: 14px;
  height: 14px;
  fill: white;
}